{include file="./headStart.tpl"}
{literal}
<script type="text/javascript">
$(document).ready(function() {
});
</script>
{/literal}
{include file="./headEnd.tpl"}
<form name="form1" action="{$smarty.server.PHP_SELF}" id="form" method="post">
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
	<td class="table1" align="center">From :</td>
	<td class="table1" align="center">{html_select_date prefix="fromDate" start_year="-1" end_year="+5" field_order="DMY" month_format="%m" time="$fromDate"}   </td>
	<td class="table1" align="center">To :</td>
	<td class="table1" align="center">{html_select_date prefix="toDate" start_year="-1" end_year="+5" field_order="DMY" month_format="%m" time="$toDate"}</td>
	<td class="table1" align="center"><input type="submit" name="submitDateBtn" value="GO..." class="button" /></td>
</tr>
</table>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="8"> 
    <font style="font-size: 16px"><b>R And R List</b></font>
  </td>
</tr>
<tr>
  <td class="table1" align="center">S.R.No</td>
  <td class="table1" align="center">Customer</td>
  <td class="table1" align="center">Challan No.</td>
  <td class="table1" align="center">Vendor Name</td>
  <td class="table1" align="center">Address</td>
  <td class="table1" align="center">Complaint Date</td>
  <td class="table1" align="center">Target Date</td>
  <td class="table1" align="center">&nbsp;</td>
</tr>
{section name="sec" loop=$productArray}
<tr>
  <td class="table3" align="center" style="font-size:10px;">{$smarty.section.sec.rownum}</td>
  <td class="table3" align="center" style="font-size:10px;">{$productArray[sec].companyName}</td>
  <td class="table3" align="center" style="font-size:10px;">{$productArray[sec].srNo}</td>
  <td class="table3" align="center" style="font-size:10px;">{$productArray[sec].companyName}</td>
  <td class="table3" align="center" style="font-size:10px;">{$productArray[sec].address}</td>
  <td class="table3" align="center" NOWRAP>{$productArray[sec].complaintDate}</td>
  <td class="table3" align="center" NOWRAP>{$productArray[sec].targetDate}</td>
	<td class="table3">  
	  <a href="rAndRDetail.php?rAndRMasterId={$productArray[sec].rAndRMasterId}" class="link">Detail</a>
	</td>
<tr>
{sectionelse}
<tr>
	<td class="table3" align="center" colspan="8"><b>No Record Found</b></td>
</tr>
{/section}
</table>
</form>
{include file="footer.tpl"}